const Controller = require('egg').Controller;

class ClassController extends Controller {
  async index() {
    const { ctx, app } = this;
  }
  // 添加课程
  async addCourse() {
    const data = await this.ctx.service.class.addCourse()
    this.ctx.body = data;
  }
  // 查询课程
  async findCourse() {
    const data = await this.ctx.service.class.findCourse()
    this.ctx.body = data;
  }
  // 添加教室
  async addRoom() {
    const data = await this.ctx.service.class.addRoom()
    this.ctx.body = data;
  }
  // 查询教室
  async findRoom() {
    const data = await this.ctx.service.class.findRoom()
    this.ctx.body = data;
  }
  // 添加班级信息
  async addClassGrade() {
    const data = await this.ctx.service.class.addClassGrade()
    this.ctx.body = data;
  }
}

module.exports = ClassController;